package grp.service.Impl;

import grp.pojo.Consumer;
import grp.dao.ConsumerMapper;
import grp.dao.ManagerMapper;
import grp.service.IConsumerService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service("iConsumerService")
public class ConsumerServiceImpl implements IConsumerService{
    @Autowired
    private ConsumerMapper consumerMapper;
    private ManagerMapper managerMapper;

    @Override
    public Consumer getNameByID(String id) {
        Consumer obj = consumerMapper.selectByPrimaryKey(id);
        if (obj == null){
            return null;
        }
        return obj;
    }
}
